package xyz.wanwanwan.www.hrm.feign.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import xyz.wanwanwan.www.hrm.domain.CourseDetail;
import xyz.wanwanwan.www.hrm.feign.fallback.CourseDetailClientFallbackFactory;

@FeignClient(value = "course-server",fallbackFactory = CourseDetailClientFallbackFactory.class)
public interface CourseDetailClient {
    //获取用户
    @RequestMapping(value = "/courseDetail/{id}",method = RequestMethod.GET)
    CourseDetail get(@PathVariable("id")Long id);
}
